home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000203_news@newsmaster….columbia.edu _Wed Aug 20 13:01:17 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA04091
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 20 Aug 1997 13:01:17 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA18123
  7.     for kermit.misc@watsun; Wed, 20 Aug 1997 13:01:16 -0400 (EDT)
  8. Path: news.columbia.edu!panix!news.eecs.umich.edu!nntprelay.mathworks.com!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsxfer3.itd.umich.edu!oleane!calvacom!not-for-mail
  9. From: do11@calva.net (Dominique Ottello)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Problem with IF NUMERIC between 3.14 and 3.15
  12. Date: Wed, 20 Aug 1997 17:01:55 GMT
  13. Organization: PCatHome&Me
  14. Lines: 43
  15. Message-ID: <33fb02f2.277916@news.calvacom.fr>
  16. Reply-To: do11@calva.net
  17. NNTP-Posting-Host: parb17.calvacom.fr
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Newsreader: Forte Agent 1.5/32.451
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7515
  23.  
  24. One more time : Hello from France.
  25.  
  26. The take file hereunder is able to test a keyboard data input to see if the
  27. data is defined (not only return key), numeric and between lower and upper
  28. limits.
  29.  
  30. Under MS-DOS Kermit 3.14 :
  31. inputs with unary operators + or - are seen as not numeric.
  32. (The documentation says that only digits 0..9 are accepted)
  33.  
  34. Under MS-DOS Kermit 3.15 :
  35. inputs need to have unary operators + or -
  36. Any data without unary operator + and with more than one numeric character
  37. is seen as not numeric.
  38.        "5" or "+5" are both seen as numeric
  39.        "12" is seen as not numeric
  40.        "+12" is seen as numeric.
  41. It seems that the implicit unary operator + is not taken into account.
  42.  
  43. I propose that for Kermit 3.15 "IF NUMERIC"
  44.    - accept digits 0 1 2 3 4 5 6 7 8 9
  45.    - accept unary operators + or - only in first position
  46.    - put an implicit unary operator + if there was not
  47.  
  48. Comments please.
  49.  
  50. Best regards,
  51.  
  52. :Begin
  53. define \%e
  54. ask \%c {Your Choice (Between 1 and 99) : }
  55. if not defined \%c define \%e undefined
  56. if not defined \%e if not numeric \%c define \%e not numeric
  57. if not defined \%e if < \%c 1 define \%e too low
  58. if not defined \%e if > \%c 99 define \%e too high
  59. if not defined \%e goto Fin
  60. echo {\7Error : your answer (\%c) is \%e\7}
  61. pause 2
  62. goto Begin
  63. :Fin
  64.  
  65.  
  66. == Dominique Ottello == do11@calva.net == Paris == France ==